#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"


void testcardIsMine(){

	struct gameState *gs;

	gs=newGame();

	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
	           sea_hag, tribute, smithy};

	initializeGame(2, k, 1, gs);
	int player=0;

	gs->handCount[player]=5;

	int handpos=0;

	gs->hand[player][handpos] = estate;
	gs->hand[player][1] = estate;
	gs->hand[player][2] = duchy;
	gs->hand[player][3] = province;
	gs->hand[player][4] = great_hall; //total 10

	int choice1=1;
	int choice2=0;


	int ret=mineCard(choice1, choice2, gs, handpos);

	if(ret == -1)
	{
		printf("mineCard(): PASS when no treasure cards in hand");
	}
	else{

		printf("mineCard(): FAIL when no treasure cards in hand");
	}

}


int main(int argc, char *argv[])
{
	testcardIsMine();
    return 0;
}



